﻿@model IEnumerable<TCM.Level>

@{
    ViewBag.Title = "Levels List";
}
<div class="IndexBack">
    @Html.ActionLink(" ", "../")
</div>
<br />

<h2>Index</h2>

<div class="toolbar">
        @Html.ActionLink("Create New", "Create")
</div>
<br />


    <table class="grdTable" style="width: 100%;" cellspacing="0">

      <thead>
    <tr>        
        <th>
            @Html.DisplayNameFor(model => model.Code)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Name)


        </th>        
        <th>
            @Html.DisplayNameFor(model => model.Description)
        </th>
      
        <th>
            @Html.DisplayNameFor(model => model.Duration)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Fees)
        </th>     
        <th>
            @Html.DisplayNameFor(model => model.RecordState.StatusName)
        </th>
       
         
         
         
        <th></th>
    </tr>
 </thead>
  <tbody>

@foreach (var item in Model) {
    <tr>
   
        <td>
            @Html.DisplayFor(modelItem => item.Code)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
       
        <td>
            @Html.DisplayFor(modelItem => item.Description)
        </td>
        
        <td>
            @Html.DisplayFor(modelItem => item.Duration)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Fees)
        </td>
      
        <td>
            @Html.DisplayFor(modelItem => item.RecordState.StatusName)
        </td>
        
      
        <td>
            @Html.ActionLink("Edit", "Edit", new {  id=item.LevelID  }) |
            @Html.ActionLink("Details", "Details", new { id=item.LevelID  }) |
            @Html.ActionLink("Delete", "Delete", new {  id=item.LevelID  })
        </td>
    </tr>
}
    </tbody>
</table>

